Analyzing the Optimal Balance Between R&D Expense Ratio and Market Share for AI Chip Firms